package com.lzc.jobrecomendbackend.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * 大语言模型配置类
 */
@Configuration
public class LLMConfig {
    
    @Value("${llm.api.key:sk-4daa3d657f4748128bec3eeaa50f3ad6}")
    private String apiKey;
    
    @Value("${llm.api.base-url:https://dashscope.aliyuncs.com/compatible-mode/v1}")
    private String baseUrl;
    
    @Value("${llm.api.model:qwen3-235b-a22b}")
    private String modelName;
    
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
    
    public String getApiKey() {
        return apiKey;
    }
    
    public String getBaseUrl() {
        return baseUrl;
    }
    
    public String getModelName() {
        return modelName;
    }
} 